#include<iostream>
#include<string>
using std::cin;
using std::cout;
using std::endl;
using std::string;


class Solution {
public:
    string reverseVowels(string s) 
	{
        for(int i=0,j=s.size()-1 ; i<j ;i++,j-- )
        {
        	while(!isYuan(s[i])&&i<j)
        	{
        		i++;
			}
			
			while(!isYuan(s[j])&&i<j)
        	{
        		j--;
			}
			
			char t;
			t=s[i];
			s[i]=s[j];
			s[j]=t;
		}
		return s;
    }
    
    static bool isYuan(char a)
    {
    	if(a=='a'||a=='e'||a=='i'||a=='o'||a=='u'||a=='A'||a=='E'||a=='I'||a=='O'||a=='U')
    	{
    		return true;
		}
		
		return false;
	}
};


int main()
{
	Solution solution;
	string s="leetcode";
	cout<<solution.reverseVowels(s)<<endl;
	return 0;
}

